package show.hkl.remote.http;

import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;

public class HttpUtil {
    public static void main(String[] args) {
        RestTemplate restTemplate = new RestTemplate();
        String url = "http://imc.bx.cisdigital.cn/imc/dispatch/adapter/api/customQuery/queryDataBySql?sqlStr=";
        String sqlStr = "select * from com_order_msc_line ";
        ResponseEntity<HashMap> forEntity = restTemplate.getForEntity(url + sqlStr, HashMap.class);
        System.out.println(forEntity);
    }
}
